<template>
<!-- 更多（头像、文字、图片） -->
  <div>
    <div class="main" v-for="(item, index) in hot" :key="index">
      <div class="main-top">
        <img :src="item.head" alt="" />
        <span>{{ item.user }}</span>
      </div>
      <div class="main-mid">{{ item.info }}</div>
      <div class="main-bottom">
        <img :src="item.img" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
    props:{
        hot:{
            type:Array,
            default:function(){
                return[]
            }
        }
    }
};
</script>

<style lang="less" scoped>
 .main {
    width: 100%;
    margin-bottom: 0.4rem;
    .main-top {
      width: 100%;
      height: 0.8rem;
      position: relative;
      border-top: 0.02rem solid #e5e5e5;
      img {
        position: relative;
        width: 0.6rem;
        height: 0.6rem;
        border-radius: 50%;
        top: 0.2rem;
        left: 0.2rem;
        margin-right: 0.35rem;
      }
    }
    .main-mid {
      width: 100%;
      font-size: 0.2rem;
      line-height: 0.3rem;
      margin: 0.15rem;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
    }
    .main-bottom {
      width: 100%;
      height: 3rem;
      img {
        width: 100%;
        height: 100%;
        margin: 0.2rem;
        margin-top: 0.1rem;
      }
    }
  }
</style>